﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Livro" targetNamespace="http://tempuri.org/Livro.xsd" xmlns:mstns="http://tempuri.org/Livro.xsd" xmlns="http://tempuri.org/Livro.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="igrejaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="igrejaConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.htmltortf.Properties.Settings.GlobalReference.Default.igrejaConnectionString" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="LivrosTableAdapter" GeneratorDataComponentClassName="LivrosTableAdapter" Name="Livros" UserDataComponentName="LivrosTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="igrejaConnectionString (Settings)" DbObjectName="Livros" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByLivroid" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataLivroid" GeneratorSourceName="FillByLivroid" GetMethodModifier="Public" GetMethodName="GetDataLivroid" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataLivroid" UserSourceName="FillByLivroid">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Livros] WHERE (([livro_id] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Livros] ([livro], [sigla], [Testamento], [siglaconversao]) VALUES (@p1, @p2, @p3, @p4)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="livro" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="sigla" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Testamento" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="siglaconversao" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        livro_id, livro, sigla, Testamento, siglaconversao
FROM            Livros
WHERE        (livro_id = @livro_id)
ORDER BY livro</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="livro_id" ColumnName="livro_id" DataSourceName="Livros" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@livro_id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Livros] SET [livro] = @p1, [sigla] = @p2, [Testamento] = @p3, [siglaconversao] = @p4 WHERE (([livro_id] = @p5))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="livro" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="sigla" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Testamento" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="siglaconversao" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="livro_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="livro_id" DataSetColumn="livro_id" />
              <Mapping SourceColumn="livro" DataSetColumn="livro" />
              <Mapping SourceColumn="sigla" DataSetColumn="sigla" />
              <Mapping SourceColumn="Testamento" DataSetColumn="Testamento" />
              <Mapping SourceColumn="siglaconversao" DataSetColumn="siglaconversao" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="igrejaConnectionString (Settings)" DbObjectName="Livros" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByTestamento" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByTestamento" GeneratorSourceName="FillByTestamento" GetMethodModifier="Public" GetMethodName="GetDataByTestamento" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByTestamento" UserSourceName="FillByTestamento">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT Testamento, livro, livro_id, sigla, siglaconversao FROM Livros WHERE (Testamento = @testamento) ORDER BY sequencia, livro</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="testamento" ColumnName="Testamento" DataSourceName="Livros" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@testamento" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="Testamento" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Livro" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="Livro" msprop:Generator_DataSetName="Livro" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Livros" msprop:Generator_UserTableName="Livros" msprop:Generator_RowDeletedName="LivrosRowDeleted" msprop:Generator_RowChangedName="LivrosRowChanged" msprop:Generator_RowClassName="LivrosRow" msprop:Generator_RowChangingName="LivrosRowChanging" msprop:Generator_RowEvArgName="LivrosRowChangeEvent" msprop:Generator_RowEvHandlerName="LivrosRowChangeEventHandler" msprop:Generator_TableClassName="LivrosDataTable" msprop:Generator_TableVarName="tableLivros" msprop:Generator_RowDeletingName="LivrosRowDeleting" msprop:Generator_TablePropName="Livros">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="livro_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="livro_id" msprop:Generator_ColumnVarNameInTable="columnlivro_id" msprop:Generator_ColumnPropNameInRow="livro_id" msprop:Generator_ColumnPropNameInTable="livro_idColumn" type="xs:int" />
              <xs:element name="livro" msprop:Generator_UserColumnName="livro" msprop:Generator_ColumnVarNameInTable="columnlivro" msprop:Generator_ColumnPropNameInRow="livro" msprop:Generator_ColumnPropNameInTable="livroColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="sigla" msprop:Generator_UserColumnName="sigla" msprop:Generator_ColumnVarNameInTable="columnsigla" msprop:Generator_ColumnPropNameInRow="sigla" msprop:Generator_ColumnPropNameInTable="siglaColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Testamento" msprop:Generator_UserColumnName="Testamento" msprop:Generator_ColumnVarNameInTable="columnTestamento" msprop:Generator_ColumnPropNameInRow="Testamento" msprop:Generator_ColumnPropNameInTable="TestamentoColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="siglaconversao" msprop:Generator_UserColumnName="siglaconversao" msprop:Generator_ColumnVarNameInTable="columnsiglaconversao" msprop:Generator_ColumnPropNameInRow="siglaconversao" msprop:Generator_ColumnPropNameInTable="siglaconversaoColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Livros" />
      <xs:field xpath="mstns:livro_id" />
    </xs:unique>
  </xs:element>
</xs:schema>